package com.lxf.cloudproduct.service;

import com.alibaba.fastjson.JSONObject;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

/**
 * @author 罗兴发
 * @data 2025/5/9 9:49
 * @description：商品业务层
 */
public interface ProductService {
    String addProduct(JSONObject json,HttpServletRequest request);

    String addProductDesc(JSONObject json, HttpServletRequest request);

    String getProductByCode(JSONObject json,HttpServletRequest request);

    String getProduct(JSONObject json);

    String updateProductByCode(JSONObject json,HttpServletRequest request);

    void updateProductNumByCode(JSONObject json);

    String deleteProductByCode(JSONObject json);

    String uploadProduct(MultipartFile file,HttpServletRequest request);

    String updateProductImgByCode(JSONObject json, HttpServletRequest request);

    String deleteProductEsData();

    String recommendProduct(JSONObject json, HttpServletRequest request);

    String getProductImgByCode(JSONObject json);

    String findAllByGoodCodeIn(JSONObject json);

    String findAllByCLR(JSONObject json);
}
